package com.pmpd.activity.rpc;

import com.pmpd.activity.bo.api.RunDistanceBo;
import com.pmpd.activity.rpc.fallback.ActivityRunRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author liuying
 * @Description 活动调用Run模块
 * @Date 10:52 2018/6/11
 */
@FeignClient(name = "dmap-run-server", fallback = ActivityRunRpcFallback.class)
public interface ActivityRunRpc {
    @RequestMapping(value = "/rpc/dmap-run-server/v1/activity/get/user/day/distance", method = RequestMethod.GET)
    List<RunDistanceBo> selectRunData(@RequestParam(value = "userIdList") List<Long> userIdList, @RequestParam(value = "time") long time);
}
